
<!DOCTYPE html>
<html lang="zh-CN" class="app">
	
<!-- Mirrored from easp.jswwl.com/?api/Easp.Fso.MapPath by HTTrack Website Copier/3.x [XR&CO'2014], Sat, 13 Nov 2021 05:17:07 GMT -->
<!-- Added by HTTrack --><meta http-equiv="content-type" content="text/html;charset=UTF-8" /><!-- /Added by HTTrack -->
<head>
		<meta charset="utf-8" />
		<title>Easp.Fso.MapPath - EasyASP API 文档</title>
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
		<link href="../cdn.bootcss.com/bootstrap/3.1.0/css/bootstrap.min.css" rel="stylesheet">
		<link href="../cdn.bootcss.com/font-awesome/4.6.2/css/font-awesome.min.css" rel="stylesheet">		<link href="../cdn.bootcss.com/prettify/r298/prettify.min.css" rel="stylesheet">
		<link rel="stylesheet" href="inc/css/animate.css" type="text/css" />
		<link rel="stylesheet" href="inc/css/simple-line-icons.css" type="text/css" />
		<link rel="stylesheet" href="inc/css/font.css" type="text/css" />
		<link rel="stylesheet" href="inc/css/app.css" type="text/css" />
		<link rel="stylesheet" href="inc/editor/css/editormd.preview.min.css" />
		<!--<link href='http://api.youziku.com/webfont/CSS/57358c19f629d8086c49377f' rel='stylesheet' type='text/css' />-->
		<!--[if lt IE 9]>
			<script src="inc/js/ie/html5shiv.js"></script>
			<script src="inc/js/ie/respond.min.js"></script>
			<script src="inc/js/ie/excanvas.js"></script>
		<![endif]-->
	</head>
	<body>
		<section class="vbox">
			<header class="bg-white-only header header-md navbar navbar-fixed-top-xs">
	<div class="navbar-header aside bg-info dk">
		<a class="btn btn-link visible-xs" data-toggle="class:nav-off-screen,open" data-target="#nav,html"> <i class="icon-list"></i></a>
		<a href="index.html" class="navbar-brand text-lt"> <img src="inc/images/logo.png" alt="."> <span class="hidden-nav-xs m-l-sm english">EasyASP</span></a>
	</div>
	<ul class="nav navbar-nav hidden-xs">
		<li>
			<a href="#nav,.navbar-header" data-toggle="class:nav-xs,nav-xs" class="text-muted"> <i class="fa fa-dedent text"></i><i class="fa fa-indent text-active"></i></a>
		</li>
	</ul>
	<!--<form class="navbar-form navbar-left input-s-lg m-t m-l-n-xs hidden-xs" role="search">
		<div class="form-group">
			<div class="input-group">
				<span class="input-group-btn">
					<button type="button" class="btn btn-sm bg-white btn-icon rounded"><i class="fa fa-search"></i></button>
				</span>
				<input type="text" class="form-control input-sm no-border rounded" id="search" placeholder="Search API">
			</div>
		</div>
	</form>-->
	<ul class="nav nav-pills pull-right topnav hidden-xs">
		<li role="presentation"><a href="http://www.easyasp.cn/" target="_blank">EASP官网</a></li>
		<li role="presentation"><a href="http://www.easyasp.cn/downloads" target="_blank">下载</a></li>
		<li role="presentation"><a href="http://www.easyasp.cn/tutorials" target="_blank">教程</a></li>
		<li role="presentation" class="active"><a href="javascript:;">API文档</a></li>
		<li role="presentation"><a href="http://www.easyasp.cn/plugins" target="_blank">插件</a></li>
		<li role="presentation"><a href="http://bbs.easyasp.cn/" target="_blank">论坛</a></li>
		<li role="presentation"><a href="http://www.easyasp.cn/donate" target="_blank">捐赠</a></li>
	</ul>
</header>
			<section>
				<section class="hbox stretch">
					
<aside class="bg-dark dk aside hidden-print" id="nav">
	<section class="vbox">
		<section class="w-f-md scrollable">
			<div class="slim-scroll" data-height="auto" data-disable-fade-out="true" data-distance="0" data-size="10px" data-railOpacity="0.2">
				<nav class="nav-primary hidden-xs">
					<ul class="nav" data-ride="collapse">
						<li class="hidden-nav-xs padder m-t m-b-sm text-xs text-muted"></li>
						<li class=""><a href="index368f.html?api/Easp.BasePath" class="auto"><i class="fa-leaf fa"></i><span>基础公共函数</span></a></li>
						<li class="">
							<a href="#" class="auto"><span class="pull-right text-muted"><i class="fa fa-angle-left text"></i><i class="fa fa-angle-down text-active"></i></span><i class="fa-font fa"></i><span>字符串处理</span></a>
							<ul class="nav dk text-sm">
								<li class=""><a href="index19fa.html?api/Easp.Str.EncodeJsonUnicode" class="auto"> <i class="fa fa-angle-right text-xs"></i><span>字符串处理</span></a></li>
								<li class=""><a href="index843b.html?api/StringBuilder.NewLine" class="auto"> <i class="fa fa-angle-right text-xs"></i><span>String Builder</span></a></li>
								<li class=""><a href="indexbede.html?api/Validation.Value" class="auto"> <i class="fa fa-angle-right text-xs"></i><span>表单验证</span></a></li>
							</ul>
						</li>
						<li class=""><a href="index86e2.html?api/Easp.Date.Format" class="auto"><i class="fa-calendar fa"></i><span>日期处理</span></a></li>
						<li class=""><a href="index2520.html?api/Easp.Error.E" class="auto"><i class="fa-bug fa"></i><span>异常处理</span></a></li>
						<li class=""><a href="index3c88.html?api/Easp.Console.Enable" class="auto"><i class="fa-stethoscope fa"></i><span>控制台调试</span></a></li>
						<li class=""><a href="index23ba.html?api/Easp.Var.Var" class="auto"><i class="fa-magic fa"></i><span>超级变量</span></a></li>
						<li class=""><a href="index6241.html?api/Easp.Db.QueryTimes" class="auto"><i class="fa-bars fa"></i><span>数据库操作</span></a></li>
						<li class="">
							<a href="#" class="auto"><span class="pull-right text-muted"><i class="fa fa-angle-left text"></i><i class="fa fa-angle-down text-active"></i></span><i class="fa-truck fa"></i><span>JSON 解析与生成</span></a>
							<ul class="nav dk text-sm">
								<li class=""><a href="index3fac.html?api/Easp.Json.EncodeUnicode" class="auto"> <i class="fa fa-angle-right text-xs"></i><span>JSON 解析与生成</span></a></li>
								<li class=""><a href="index1814.html?api/Object.Get" class="auto"> <i class="fa fa-angle-right text-xs"></i><span>JsonObject 对象</span></a></li>
								<li class=""><a href="indexd2e5.html?api/Array.Get" class="auto"> <i class="fa fa-angle-right text-xs"></i><span>JsonArray 对象</span></a></li>
							</ul>
						</li>
						<li class=""><a href="index0e2b.html?api/Easp.List.New" class="auto"><i class="fa-rocket fa"></i><span>超级数组</span></a></li>
						<li class="active"><a href="index8d16.html?api/Easp.Fso.fsoName" class="auto"><i class="fa-copy fa"></i><span>文件系统处理</span></a></li>
						<li class=""><a href="index3006.html?api/Easp.Tpl.FilePath" class="auto"><i class="fa-bolt fa"></i><span>模板引擎</span></a></li>
						<li class=""><a href="indexc31d.html?api/Easp.Tar.SavePath" class="auto"><i class="fa fa-file-zip-o"></i><span>无组件压缩解压</span></a></li>
						<li class="">
							<a href="#" class="auto"><span class="pull-right text-muted"><i class="fa fa-angle-left text"></i><i class="fa fa-angle-down text-active"></i></span><i class="fa-upload fa"></i><span>无组件上传</span></a>
							<ul class="nav dk text-sm">
								<li class=""><a href="index7b7b.html?api/Easp.Upload.AllowMaxSize" class="auto"> <i class="fa fa-angle-right text-xs"></i><span>无组件上传</span></a></li>
								<li class=""><a href="index2627.html?api/File.ContentType" class="auto"> <i class="fa fa-angle-right text-xs"></i><span>文件对象</span></a></li>
							</ul>
						</li>
						<li class=""><a href="index14f8.html?api/Easp.Http.New" class="auto"><i class="icon-link icon"></i><span>远程文件处理</span></a></li>
						<li class="">
							<a href="#" class="auto"><span class="pull-right text-muted"><i class="fa fa-angle-left text"></i><i class="fa fa-angle-down text-active"></i></span><i class="fa-cloud-download fa"></i><span>缓存处理</span></a>
							<ul class="nav dk text-sm">
								<li class=""><a href="index2221.html?api/Easp.Cache.New" class="auto"> <i class="fa fa-angle-right text-xs"></i><span>缓存处理</span></a></li>
								<li class=""><a href="index99f4.html?api/Info.Expires" class="auto"> <i class="fa fa-angle-right text-xs"></i><span>缓存文件操作</span></a></li>
							</ul>
						</li>
						<li class="">
							<a href="#" class="auto"><span class="pull-right text-muted"><i class="fa fa-angle-left text"></i><i class="fa fa-angle-down text-active"></i></span><i class="fa-rss-square fa"></i><span>XML文件处理</span></a>
							<ul class="nav dk text-sm">
								<li class=""><a href="index00fb.html?api/Easp.Xml.Open" class="auto"> <i class="fa fa-angle-right text-xs"></i><span>XML文件处理</span></a></li>
								<li class=""><a href="index27f6.html?api/Node.Dom" class="auto"> <i class="fa fa-angle-right text-xs"></i><span>XML节点对象操作</span></a></li>
							</ul>
						</li>
						<li class=""><a href="index4112.html?api/Easp.Plug.Bs" class="auto"><i class="fa-plug fa"></i><span>拓展插件</span></a></li>
					</ul>
				</nav>
			</div>
		</section>
	</section>
</aside>
					<section id="content">
						<section class="vbox">
							<section class="w-f-md" id="bjax-target">
								<section class="hbox stretch">
<aside class="aside bg-light dk" id="sidebar">
	<section class="vbox animated">
		<section class="scrollable hover">
			<div class="list-group no-radius no-border no-bg auto en class-li">
<a href="index8d16.html?api/Easp.Fso.fsoName" class=" list-group-item property">Easp.Fso.fsoName</a>
<a href="index0543.html?api/Easp.Fso.CharSet" class=" list-group-item property">Easp.Fso.CharSet</a>
<a href="indexf115.html?api/Easp.Fso.Force" class=" list-group-item property">Easp.Fso.Force</a>
<a href="index45da.html?api/Easp.Fso.OverWrite" class=" list-group-item property">Easp.Fso.OverWrite</a>
<a href="index2c65.html?api/Easp.Fso.SizeFormat" class=" list-group-item property">Easp.Fso.SizeFormat</a>
<a href="index6cbc.html?api/Easp.Fso.isExists" class=" list-group-item method">Easp.Fso.isExists</a>
<a href="index3fc8.html?api/Easp.Fso.isFile" class=" list-group-item method">Easp.Fso.isFile</a>
<a href="indexe944.html?api/Easp.Fso.Read" class=" list-group-item method">Easp.Fso.Read</a>
<a href="index3dda.html?api/Easp.Fso.SaveAs" class=" list-group-item method">Easp.Fso.SaveAs</a>
<a href="indexb79c.html?api/Easp.Fso.CreateFile" class=" list-group-item method">Easp.Fso.CreateFile</a>
<a href="index5e5e.html?api/Easp.Fso.UpdateFile" class=" list-group-item method">Easp.Fso.UpdateFile</a>
<a href="index5b0c.html?api/Easp.Fso.AppendFile" class=" list-group-item method">Easp.Fso.AppendFile</a>
<a href="index9b72.html?api/Easp.Fso.isFolder" class=" list-group-item method">Easp.Fso.isFolder</a>
<a href="indexfd31.html?api/Easp.Fso.CreateFolder" class=" list-group-item method">Easp.Fso.CreateFolder</a>
<a href="indexfa2f.html?api/Easp.Fso.MD" class=" list-group-item method">Easp.Fso.MD</a>
<a href="indexc237.html?api/Easp.Fso.Dir" class=" list-group-item method">Easp.Fso.Dir</a>
<a href="index5be3.html?api/Easp.Fso.List" class=" list-group-item method">Easp.Fso.List</a>
<a href="index27f6-2.html?api/Easp.Fso.NameOf" class=" list-group-item method">Easp.Fso.NameOf</a>
<a href="index5021.html?api/Easp.Fso.ExtOf" class=" list-group-item method">Easp.Fso.ExtOf</a>
<a href="index0099.html?api/Easp.Fso.Attr" class=" list-group-item method">Easp.Fso.Attr</a>
<a href="index432f.html?api/Easp.Fso.getAttr" class=" list-group-item method">Easp.Fso.getAttr</a>
<a href="index0946.html?api/Easp.Fso.CopyFile" class=" list-group-item method">Easp.Fso.CopyFile</a>
<a href="index51c3.html?api/Easp.Fso.CopyFolder" class=" list-group-item method">Easp.Fso.CopyFolder</a>
<a href="indexd32c.html?api/Easp.Fso.Copy" class=" list-group-item method">Easp.Fso.Copy</a>
<a href="index4276.html?api/Easp.Fso.MoveFile" class=" list-group-item method">Easp.Fso.MoveFile</a>
<a href="index070a.html?api/Easp.Fso.MoveFolder" class=" list-group-item method">Easp.Fso.MoveFolder</a>
<a href="indexd65c.html?api/Easp.Fso.Move" class=" list-group-item method">Easp.Fso.Move</a>
<a href="indexeb9f.html?api/Easp.Fso.DelFile" class=" list-group-item method">Easp.Fso.DelFile</a>
<a href="index34f7.html?api/Easp.Fso.DelFolder" class=" list-group-item method">Easp.Fso.DelFolder</a>
<a href="index515d.html?api/Easp.Fso.RD" class=" list-group-item method">Easp.Fso.RD</a>
<a href="index6f08.html?api/Easp.Fso.Del" class=" list-group-item method">Easp.Fso.Del</a>
<a href="index53fd.html?api/Easp.Fso.Rename" class=" list-group-item method">Easp.Fso.Rename</a>
<a href="index71b1.html?api/Easp.Fso.Ren" class=" list-group-item method">Easp.Fso.Ren</a>
<a href="index0184.html?api/Easp.Fso.MapPath" class="active list-group-item method">Easp.Fso.MapPath</a>
<a href="index3eaa.html?api/Easp.Fso.formatSize" class=" list-group-item method">Easp.Fso.formatSize</a>

			</div>
		</section>
	</section>
</aside>
									<section id="content">
										<section class="vbox">
											<section class="w-f-md" id="bjax-target">
												<section class="hbox stretch">
													<aside class="col-lg-6 b-l">

<section class="vbox">

<section class="scrollable padder-v hover m-t m-b" id="test-editormd-view">

<textarea id="append-test" style="display:none;">
## Easp.Fso.MapPath
方法，获取文件或文件夹的物理绝对路径
<h4 class="font-thin"><label class="label bg-info text-white"><i class="fa fa-code"></i> 语法</label></h4>

```asp
Easp.Fso.MapPath path
```
<h4 class="font-thin"><label class="label bg-info text-white"><i class="fa fa-cogs"></i> 参数</label></h4>

|参数|类型|说明
| ------------ | ------------ |
|path|String(字符串)|文件或文件夹的网络路径，可以是相对路径、以 `/` 开头的站点绝对路径
<h4 class="font-thin"><label class="label bg-info text-white"><i class="fa fa-reply"></i> 返回值</label></h4>

|类型|说明
| ------------ | ------------ |
|String(字符串)|文件或文件夹的以 `盘符:\` 开头的硬盘绝对路径
<h4 class="font-thin"><label class="label bg-info text-white"><i class="fa fa-info-circle"></i> 说明</label></h4>

获取文件或文件夹的物理绝对路径，此方法类似于`Server.MapPath(path)`。
<h4 class="font-thin"><label class="label bg-info text-white"><i class="fa fa-plug"></i> 示例</label></h4>

```asp
Easp.WN Easp.Fso.MapPath("_temp/_temp2.jpg")
```
浏览器返回：
```asp
D:\easp.jam1.cn\_temp\_temp2.jpg
```
<h4 class="font-thin"><label class="label bg-info text-white"><i class="fa fa-tag"></i> 应用场景 & 使用心得</label></h4>

应用场景
<h4 class="font-thin"><label class="label bg-info text-white"><i class="fa fa-terminal"></i> 源码解析</label></h4>

core/easp.fso.asp 第 552 行。



</textarea>

</section>

														</section>
													</aside>
												</section>
											</section>
										</section>
									</section>
								</section>
							</section>
						</section>
					</section>
				</section>
			</section>
		</section>		
		<script src="../s3.pstatp.com/cdn/expire-1-M/jquery/3.3.1/jquery.min.js"></script>
		<script src="../s1.pstatp.com/cdn/expire-1-M/twitter-bootstrap/4.3.1/js/bootstrap.min.js"></script>
		<script src="../s2.pstatp.com/cdn/expire-1-M/jQuery-slimScroll/1.3.8/jquery.slimscroll.min.js"></script>
		<script src="../s1.pstatp.com/cdn/expire-1-M/prettify/r298/prettify.min.js"></script>
		<script src="inc/editor/lib/marked.min.js"></script>
		<script src="inc/editor/editormd.js"></script>
		<script src="inc/js/app.js"></script>
		<script src="inc/js/jquery.easysearch.js"></script>
		<script>
			
			$(function() {
				var testEditormdView;
				testEditormdView = editormd.markdownToHTML("test-editormd-view", {
					htmlDecode: "style,script,iframe",
					emoji: true,
					editorTheme : "pastel-on-dark",
					taskList: true
				});
			});
			$('input').jSearch({
				selector: 'table',
				child: 'tr > td > a',
				minValLength: 0,
				Before: function() {
					$('table tr').data('find', '');
				},
				Found: function(elem, event) {
					$(elem).parent().data('find', 'true');
					$(elem).parent().parent().show();
				},
				NotFound: function(elem, event) {
					if (!$(elem).parent().data('find'));
					$(elem).parent().parent().hide();
				},
				After: function(t) {
					if (!t.val().length) $('table tr').show();
				}
			});
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "../hm.baidu.com/hm3298.js?7758fff2e207d5773bc5d925a2606368";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
		</script>
	</body>

<!-- Mirrored from easp.jswwl.com/?api/Easp.Fso.MapPath by HTTrack Website Copier/3.x [XR&CO'2014], Sat, 13 Nov 2021 05:17:07 GMT -->
</html>